package com.shuaigef.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName user_exercise_paper
 */
@TableName(value ="user_exercise_paper")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserExercisePaper implements Serializable {
    /**
     * 记录ID，用于唯一标识每条记录
     */
    @TableId(type = IdType.AUTO)
    private Integer recordId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 题目ID
     */
    private Integer exerciseId;

    /**
     * 试卷ID
     */
    private Integer paperId;

    /**
     * 学生答案
     */
    private String userAnswer;

    /**
     * 是否答对，0-错误，1-正确 , 2-等待判题
     */
    private Integer isCorrect;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}